import axios from "../utils/index";

// 登录
export const getlogin = (data: any) => axios(
  {
  url: '/login/login',
  data: data,
  method: 'post'
}
)
// 获取数据
export const getlist = (params: any) => axios({
  url: '/api/list',
  params: params,
  method: 'get'
})
// 删除
export const getdel = (data: any) => axios({
  url: '/api/list',
  params: data,
  method: 'delete'
})
// 添加
export const getadd = (data: any) => axios({
  url: '/api/list',
  data: data,
  method: 'put'
})
// 修改
export const getedit = (data: any) => axios({
  url: '/api/list',
  data: data,
  method: 'post'
})
